/**
 *获取交易页购买商品列表信息
 */
// 导入axios实例
import http from "@/utils/http";
import axios from "axios";
export interface reqjsonInfoData{
  "id": number,
  "userAddress": string,
  "userId": number,
  "provinceId": number,
  "consignee": string,
  "phoneNum": string,
  "isDefault": string,
  "regionId": string,
  "fullAddress": string
}


export interface reqOrderInfoData {
[x: string]: any;
  activityReduceAmount:number
  couponInfoList: []
  detailArrayList: []
  orderDetailVoList: []
  originalTotalAmount: number
  totalAmount: number
  totalNum: number
  tradeNo: string
  userAddressList: []
}
export interface detailArrayListType{
activityRule: null;
couponInfoList: null;
createTime: null;
hasStock: null;
id: null;
imgUrl: string;
orderId: null;
orderPrice: number;
refundStatus: string
refundStatusString: string
skuId: number;
skuName: string;
skuNum: number;
sourceId: number;
sourceType: string;
splitActivityAmount: null;
splitCouponAmount: null;
splitTotalAmount: null;
}


/** @desc https://www.showdoc.com.cn/2077491945864902/9358079609950282
 *  @params id 商品 Id
 * @returns  Promise
 */
export const reqOrderInfo = () => {
  return http.get<any,reqOrderInfoData>('/api/order/auth/trade')
}



export const jsonInfo = () => {
    return axios.get('http://localhost:3001/test1')
  }
  